<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>CEI Risque e Rabisque</title>
	<h:outputStylesheet name="bootstrap.css" library="css" />
	<h:outputStylesheet name="styles.css" library="css" />
	
</h:head>
<h:body>

	Teste

		<h:form>

	<!-- <h:inputHidden value="#{clienteBean.cliente.idCliente}" /> -->

		<h:messages class="alert alert-danger" role="alert" />

		<h:panelGrid columns="3">

			<h:outputLabel value="Cod. Cliente" styleClass="emphasis" />
			
			<h:inputText value="#{clienteBean.cliente.codCliente}" required="true" size="20" maxlength="50" />

			<h:outputText />
			
			<h:outputLabel value="Nome"  styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.nomeCliente}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
						
			<h:outputLabel value="CPF" styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.cpfCliente}" required="true" size="20" maxlength="50" />
			<h:outputText />
		
			
						
			<h:outputLabel value="RG" styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.rgCliente}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
			<h:outputLabel value="Data Nascimento" />
				<h:inputText value="#{clienteBean.cliente.dobCliente}">
				<f:convertDateTime dateStyle="short" pattern="dd/MM/yyyy" />
			</h:inputText>

			<h:outputText />
			
			<h:outputLabel value="Tel" styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.telCliente}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
						
			<h:outputLabel value="Tel.2" styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.tel2Cliente}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
						
			<h:outputLabel value="Cel"  styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.celCliente}" required="true" size="20" maxlength="50" />
			<h:outputText />

			
			<h:outputLabel value="Estado Civil"  styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.ecCliente}" required="true" size="20" maxlength="50" />
			<h:outputText />

			<h:outputLabel value="Sexo" />
			<h:selectOneMenu value="#{clienteBean.cliente.sexoCliente}">
				<f:selectItems value="#{clienteBean.sexo}" var="item"
					itemValue="#{item.value}" itemLabel="#{item.label}" />

			</h:selectOneMenu>

			<h:outputText />
			
						
			<h:outputLabel value="Formacao"  styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.formacaoCliente}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
			<h:outputLabel value="Rua"  styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.rua}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
			
			<h:outputLabel value="Bairro"  styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.bairro}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
			
			<h:outputLabel value="Numero"  styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.numero}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
			
			<h:outputLabel value="Complemento"  styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.complemento}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
			<h:outputLabel value="CEP"  styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.cep}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
			<h:outputLabel value="Cidade"  styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.cidade}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
			<h:outputLabel value="Naturalidade"  styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.natCliente}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
			<h:outputLabel value="Estado"  styleClass="emphasis" />		
			<h:inputText value="#{clienteBean.cliente.estado}" required="true" size="20" maxlength="50" />
			<h:outputText />
			
			
			<h:commandButton value="Cadastrar" action="#{clienteBean.cadastrar()}" />

		</h:panelGrid>

	</h:form>

	
</h:body>
</html>